Home > biomechZoo > Toolbox > PiG Ops > getDir.m

getDir

PURPOSE ^

[data,dir] = GETDIR(data,ch) determines the global axis and direction of

SYNOPSIS ^

function [data,walkDir] = getDir(data,ch)

DESCRIPTION ^

 [data,dir] = GETDIR(data,ch) determines the global axis and direction of
 walking

 ARGUMENTS
  data    ... Zoo data
  ch      ... Channel to use to determine direction. Default 'SACR'

 RETURNS
  data    ... Zoo data with direction information added to 'data.zoosystem.CompInfo.Direction'
  walkDir ... Main direction of motion

 NOTES
 - Axis of walking direction (I or J) chosen based on axis with greatest average velocity
 - Direction ('neg' or 'pos') based on whether average velocity is negative or positive

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 10-Mar-2024 22:39:06 by m2html © 2005